<?php

namespace App\Http\Controllers\Home\Order;

use Illuminate\Http\Request;

use Hash;
use DB;
use App\Http\Requests;
use App\Http\Controllers\Controller;


class OrderController extends Controller
{
    
	//购物车列表页面
	public function add(Request $request)
	{	
		//获取数据
		$data = $request->only(['goods_id','cart_num']);
		$goods = [];
		//处理数据
		foreach($data['goods_id'] as $k=>$v){
			$tmp['goods_id'] = $v;
			$tmp['cart_num'] = $data['cart_num'][$k];
			$goods[] = $tmp; 
		} 
		
	}


   

	

}
